﻿namespace Witcraft.Halcyone.ServiceModel
{
    using System;
    using System.Windows;

    [AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
    public class RestContractAttribute : Attribute
    {
        #region Properties

        public string ServiceName { get; set; }

        public Uri ServiceUri
        {
            get
            {
                return new Uri(Application.Current.Host.Source, string.Format("../{0}", this.ServiceName));
            }
        }

        #endregion
    }
}